define(function(require, exports, module) {
	/*
	*字符串分隔
	*/
	exports.split = function split(val) {
		return val.split(/,\s*/);
	}
	/**
	 * 批量设radio默认值
	 */
	var $ = require('jquery');
	exports.setRadioValue = function setRadioValue(fatherdiv, value) {
		var radios = $('#'+fatherdiv).find('input:radio');
		radios.each(function() {
			var radio = $(this);
			if (radio.val() == value) {
				if (!($('input[name="'+radio.attr('name')+'"]:checked').val())) {
					$('input[name="'+radio.attr('name')+'"][value="'+value+'"]').click();
				}
			}
		});
	}
});
			
